import { Post } from "@/library/utils/request"
import * as types from "@/views/factory_manager/label_print_record/types"
import { ResponseWithCount } from "@/library/common/types"

export const LabelPrintRecordApiUrl = {
    Select: "/LabelPrintRecord/Select",
    Insert: "/LabelPrintRecord/Insert",
}

export const LabelPrintRecordApi = {
    /**
     * 查询
     */
    Select(params: types.SelectParamsType) {
        return Post<ResponseWithCount<types.DataType[]>>(LabelPrintRecordApiUrl.Select, params)
    },
    /**
     * 新增
     */
    Insert(params: types.InsertType) {
        return Post(LabelPrintRecordApiUrl.Insert, params)
    },
}